<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>字符型</title>
</head>
<body>
</body>
<script>
    var text = "我是字符型"
    console.log(typeof text);
    var num = 10;
    var num1 = "10";
    console.log(typeof num);
    console.log(typeof  num1);
    console.log(typeof String(num));
</script>
</html>